<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>map</title>
</head>
<body>
	map: function( elems, callback, arg ) {
		var value,
			i = 0,
			length = elems.length,
			isArray = isArraylike( elems ),
			ret = [];

		// Go through the array, translating each of the items to their
		if ( isArray ) {
			for ( ; i < length; i++ ) {
				value = callback( elems[ i ], i, arg );

				if ( value != null ) {
					ret[ ret.length ] = value;
				}
			}

		// Go through every key on the object,
		} else {
			for ( i in elems ) {
				value = callback( elems[ i ], i, arg );

				if ( value != null ) {
					ret[ ret.length ] = value;
				}
			}
		}

		// Flatten any nested arrays
		return core_concat.apply( [], ret );
	}
	<div class="box" onclick="move()">guwfiebfe</div>
</body>
</html>
<script>

	function move(){
		alert(this);
	};
</script>
<script src='jquery源码分析.js'></script>
<script>
	var arr = [1,2,3,4];
	arr =  $.map(arr,function(n){
		return n+1;
	});
	console.log(arr);
</script>